<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/eff.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/structure.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/menu.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/table.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/search.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/button.css"/>">
        <title>Modifier province</title>
    </head>

<body>
        <%@ include file="/vues/menu.jsp" %>

	<center>
				<form action="<%=request.getContextPath()%>/provinces/ModifierProvince.action">
				<table cellspacing='0' id="inputText">
                <tbody>
					
					<tr>
						<td class="evento">nom :</td>
						 <td><input type="text" name="nom" value="<s:property 
						 value="nom"/>"><div style="color: red;" align="left">
						 <s:fielderror><s:param>nom</s:param></s:fielderror></div></td>
					</tr>
					<tr>
					    <td class="evento">chef lieu :</td>
					    <td><input type="text" name="description" value="<s:property 
						 value="description"/>"><div style="color: red;" align="left">
						 <s:fielderror><s:param>description</s:param></s:fielderror></div></td>
					</tr>
					<tr>
					    <td class="evento">population :</td>
					    <td><input type="text" name="population" value="<s:property 
						 value="population"/>"><div style="color: red;" align="left">
						 <s:fielderror><s:param>population</s:param></s:fielderror></div></td>
					</tr>
					
					
					<tr>
						<td class="evento">Emplacement :</td>
						<td>
						<c:choose>
						<c:when test="${not empty listeEmplacments}">
							<s:select  id="emplacement" name="idRegion"  headerKey="idReg"
							listKey="identifiant" listValue="nom"
									 list="listeEmplacments" 
									/> 
						</c:when>
						
					</c:choose>
							</td>
						
					</tr>
					<tr>
						<td class="evento" colspan="2"><input class="btnLogin" value="Modifier" type="submit"></td>

					</tr>
					
				 </tbody>
                </table>
                <s:textfield cssStyle="display:none;" name="identifiant" value="%{#parameters['identifiant']}"></s:textfield>
                
				</form>
				</center>
				
				
				
<s:if test="hasActionErrors()">
						<s:actionerror />
				</s:if>
			
</body>
</html>